﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrivateTracker.NET.Application.Services
{
    public class TorrentService : ITorrentService
    {
        private readonly ConcurrentDictionary<string, List<Torrent>> _torrents;
        public TorrentService()
        {
            _torrents = new ConcurrentDictionary<string, List<Torrent>>();
        }
        /// <summary>
        /// 添加种子信息
        /// </summary>
        /// <returns></returns>
        public Task<Torrent> AddTorrent()
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// 根据hashInfo获取种子
        /// </summary>
        /// <param name="hashInfo"></param>
        /// <returns></returns>
        public Task<Torrent> GetTorrentByHashInfoAsync(byte[] hashInfo)
        {
            throw new NotImplementedException();
        }
        /// <summary>
        /// 是否已存在
        /// </summary>
        /// <param name="hashInfo"></param>
        /// <returns></returns>
        public Task<bool> IsExistByHashInfoAsync(byte[] hashInfo)
        {
            throw new NotImplementedException();
        }
    }
}
